package models

import "gorm.io/gorm"

type User struct {
	Username     string
	Password     string
	Mobile       string
	Email        string
	UserBalance  string
	UserIntegral int64
	UserPhoto    string
	AuthStatus   int64
	gorm.Model
}

type File struct {
	UserId string
	File   string
	gorm.Model
}

type Order struct {
	OrderNo     string `json:"order_no"`
	UserId      string `json:"user_id"`
	MerchantId  int64  `json:"merchant_id"`
	GoodsId     string `json:"goods_id"`
	GoodsNum    string `json:"goods_num"`
	TotalAmount string `json:"total_amount"`
	Status      int64  `json:"status"`
	PayType     int    `json:"pay_type"`
	ShipAddress string `json:"ship_address"`
	gorm.Model
}

type VipStore struct {
	Id    int64 `json:"id"`
	VipId int64 `json:"vip_id"`
	Store int64 `json:"store"`
}

type Vip struct {
	UserID int64 `json:"user_id"`
	VipId  int64 `json:"vip_id"`
	gorm.Model
}

type VipCard struct {
	UserId     int64  `json:"user_id"`
	VipId      string `json:"vip_id"`
	VipCar     int64  `json:"vip_card"`
	CardStatus int64  `json:"card_status"`
	gorm.Model
}
